package com.sfddata.musicpillow.common.to.es;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: Jyo
 * @Date: 2021/05/07/10:04 上午
 * @Description:
 */

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * PUT product
 * {
 *   "mappings": {
 *     "properties": {
 *

 *
 *           }
 *         }
 *       }
 *     }
 *   }
 * }
 *
 */
@Data
public class SkuEsModel implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long skuId;

    private Long spuId;

    private String skuTitle;

    private BigDecimal skuPrice;

    private String skuImg;

    private long saleCount;

    private boolean hasStock;

    private Long hotScore;

    private Long brandId;

    private Long catalogId;

    private String brandName;

    private String brandImg;

    private String catalogName;

    private List<Attrs> attrs;

    @Data
    public static class Attrs{

        private Long attrId;

        private String attrName;

        private String attrValue;
    }

}
